<template>
  <h1>第二个子组件</h1>
</template>

<script>
export default {
    activated(){
        console.log('进入第二个子组件');
    },
    deactivated(){
        console.log('离开第二个子组件');
    }
}
</script>

<style>

</style>